package com.jpro.module.infra.api.config;

import com.jpro.framework.common.pojo.CommonResult;
import com.jpro.module.infra.api.config.dto.FileConfigRespVO;
import com.jpro.module.infra.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 系统配置")
public interface FileConfigApi {

    @GetMapping(value = ApiConstants.PREFIX + "/file-config/get")
    CommonResult<FileConfigRespVO> getFileConfig(@RequestParam("id") Long id);

    @GetMapping(value = ApiConstants.PREFIX + "/file-config/getStoreTplConfigs")
    public CommonResult<List<FileConfigRespVO>> getStoreTplConfigs();

}
